package spynx.desl.runtime.operators.impl;

import spynx.desl.Statement;
import spynx.desl.runtime.IExecutionContext;
import spynx.desl.runtime.IOperator;
import spynx.net.custom.DeslUrlNameResolver;

public class NameResolverOperator implements IOperator {

	@Override
	public String getOperator() {
		return "nameresolver";
	}

	@Override
	public Object apply(IExecutionContext context, String operator,
			Object... args) {
		return new DeslUrlNameResolver(context, (Statement) args[0]);
	}

}
